package com.bungarus.sdk.listener;

import com.bungarus.codec.protobuf.MessageProtobuf;

/**
 * Created by tang on 2019/1/31.
 */
public interface ClientMessageListener {
    /**
     * Handle status message
     * @param status message
     */
    void onStatus(MessageProtobuf.Message status);

    /**
     * Handle person to person message
     * @param chatMessage person to person message
     */
    void onIM(MessageProtobuf.Message chatMessage);

    /**
     * Handle group message
     * @param groupMessage group message
     */
    void onGroupIM(MessageProtobuf.Message groupMessage);

    /**
     * Handle other messages
     * @param otherMessage other messages
     */
    void onOthers(MessageProtobuf.Message otherMessage);

    /**
     * Handle authentication expires event
     */
    void onAuthExpire();

    /**
     * Handle user cannot found event
     */
    void onUserNotExist();

}
